
package gal.game.ui.gal
{
	import flash.text.TextField;
	
	import gal.game.core.display.DisplayBase;
	import gal.game.manager.UIManager;
	import gal.game.util.InstanceUtil;
	
	
	/**
	 * @author 缺硒
	 */
	public class Dialogue extends DisplayBase
	{
		private var _nameField:TextField;
		private var _msgField:TextField;
		
		// 构造函数
		public function Dialogue()
		{
			draw();
		}
		
		private function draw():void
		{
			this.x = 20;
			this.y = 360;
			
			this.graphics.beginFill(0x3576eb, 0.5);
			this.graphics.drawRoundRect(0, 0, 600, 100, 20);
			this.graphics.endFill();
			
			_nameField 		= InstanceUtil.create(new TextField(), this, {x:30, text:"【Yuki】", selectable:false});
			_msgField 		= InstanceUtil.create(new TextField(), this, {x:120, text:"早上好 ,平田君", width:500, height:80, selectable:false});

			_nameField.setTextFormat(UIManager.Text_formart);
			_msgField.setTextFormat(UIManager.Text_formart);
			
		}
		//
	}
}